<template>
	<div>
		<div id="slider" class="mui-slider ">
			<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
				<div class="mui-scroll">
					<a class="mui-control-item mui-active" href="#item1mobile" data-wid="tab-top-subpage-1.html">
						推荐
					</a>
					<a class="mui-control-item" href="#item2mobile" data-wid="tab-top-subpage-2.html">
						热点
					</a>
					<a class="mui-control-item" href="#item3mobile" data-wid="tab-top-subpage-3.html">
						北京
					</a>
					<a class="mui-control-item" href="#item4mobile" data-wid="tab-top-subpage-4.html">
						社会
					</a>
					<a class="mui-control-item" href="#item5mobile" data-wid="tab-top-subpage-5.html">
						娱乐
					</a>
					<a class="mui-control-item" href="#item5mobile" data-wid="tab-top-subpage-5.html">
						科技
					</a>

				</div>
			</div>
		</div>
		<ul class="photo-list">
			<router-link v-for="item in lists":key="item.id" tag="li" :to="'/home/photoinfo/'+item.id">
				<img v-lazy="item.imgUrl">
				<div class="info">
					<h2 class="info-title">{{item.title}}</h2>
					<div class="info-body">{{item.content}}</div>
				</div>
         </router-link>

		</ul>

	</div>
</template>

<script>
import mui from "../../lib/mui/js/mui.min.js";
export default {
  data() {
    return {
      lists: [
        {
					id:1,
		  imgUrl: "../../images/time.jpg",
		  title:"美女",
		  content:"气质美女"
        }
      ]
    };
  },
  mounted() {
    mui(".mui-scroll-wrapper").scroll({
      deceleration: 0.0005
    });
  },
  components: {}
};
</script>

<style lang="scss" scoped>
* {
  touch-action: pan-y;
}
.photo-list {
  padding: 10px;
  padding-bottom: 0;
  li {
    background: #ccc;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 0 9px #ccc;
    position: relative;
    img {
      width: 100%;
      vertical-align: middle;
    }
    image[lazy="loading"] {
      width: 40px;
      height: 300px;
      margin: auto;
	}
	 .info{
		 width: 100%;
		 color: #fff;
		position: absolute;
		 max-height:84px;
		 text-align: left;
		 background: rgba(0,0,0,.4);
		 bottom: 0;
		 .info-title{
			 font-size: 14px;
		 }
		 .info-body{
			 font-size: 13px;
		 }
	 }
  }
}
</style>

